package com.emmmya.ocs.config.security.shiro;

import org.apache.shiro.authc.UsernamePasswordToken;

public class NoPwdUsernameToken extends UsernamePasswordToken {
 
 
    private static final long serialVersionUID =1L;
 
    private boolean type;
 
 
    public NoPwdUsernameToken() {
        super();
    }

    public NoPwdUsernameToken(String username, String password, boolean rememberMe, String host) {
        super(username, password, rememberMe,host);
        this.type = false;
    }
    /**免密登录*/
    public NoPwdUsernameToken(String username) {
        super(username, "", false, null);
        this.type = true;
    }
    /**账号密码登录*/
    public NoPwdUsernameToken(String username, String password) {
        super(username, password, false, null);
        this.type = false;
    }
 
    public boolean isType() {
        return type;
    }
 
    public void setType(boolean type) {
        this.type = type;
    }
}